"""
TODO 登录页面对象
"""
from PO import page
from PO.base.base import Base


class PageLogin(Base):


    #TODO 点击“我的”菜单
    def page_click_my(self):
        self.base_click(page.my_loc)


    #TODO 勾选协议
    def page_click_agree(self):
        self.base_click(page.agree_loc)

    #TODO 点击登录按钮
    def page_click_login(self):
        self.base_click(page.login)

    #TODO 输入用户名
    def page_input_username(self, username):
        self.base_input(page.username_loc, username)

    #TODO 输入密码
    def page_input_password(self, password):
        self.base_input(page.password_loc, password)

    #TODO  点击登录按钮
    def page_click_login_btn(self):
        self.base_click(page.login_btn)

    #TODO 点击‘确定’按钮
    def page_click_ok_btn(self):
        self.base_click(page.ok_btn)





